package com.huilian.iotbox.data.dao;

import com.huilian.iotbox.data.dto.CommoditySupplierDto;
import com.huilian.iotbox.data.vo.CommoditySupplierVo;

import java.util.List;

public interface CommoditySupplierCommonDao {
    List<CommoditySupplierVo> findSupplierByUserId(CommoditySupplierDto commoditySupplierDto);

    List<CommoditySupplierVo> findSupplierNameByUserId(CommoditySupplierDto commoditySupplierDto);

    CommoditySupplierVo findSupplierGetVersion(CommoditySupplierDto commoditySupplierDto);

    int add(CommoditySupplierDto commoditySupplierDto);

    int update(CommoditySupplierDto commoditySupplierDto);

    int updateIsDelete(CommoditySupplierDto commoditySupplierDto);

    int updatePurchase(CommoditySupplierDto commoditySupplierDto);

}
